// vite.config.ts
import { loadEnv } from "file:///C:/Users/13994/Desktop/tian_ps/node_modules/.pnpm/vite@4.5.3_@types+node@18.19.46_less@4.2.0_terser@5.31.6/node_modules/vite/dist/node/index.js";
import { resolve } from "path";
import WindiCSS from "file:///C:/Users/13994/Desktop/tian_ps/node_modules/.pnpm/vite-plugin-windicss@1.9.3_vite@4.5.3_@types+node@18.19.46_less@4.2.0_terser@5.31.6_/node_modules/vite-plugin-windicss/dist/index.mjs";
import vue from "file:///C:/Users/13994/Desktop/tian_ps/node_modules/.pnpm/@vitejs+plugin-vue@4.6.2_vite@4.5.3_@types+node@18.19.46_less@4.2.0_terser@5.31.6__vue@3.4.38_typescript@4.9.5_/node_modules/@vitejs/plugin-vue/dist/index.mjs";
import vueJsx from "file:///C:/Users/13994/Desktop/tian_ps/node_modules/.pnpm/@vitejs+plugin-vue-jsx@1.3.10/node_modules/@vitejs/plugin-vue-jsx/index.js";
import { createSvgIconsPlugin } from "file:///C:/Users/13994/Desktop/tian_ps/node_modules/.pnpm/vite-plugin-sutpc-svg-icons@file+sutpc-pak+vite-plugin-sutpc-svg-icons-1.0.8.tgz_vite@4.5.3_@_caj766g2ouuenni4sawocu73xy/node_modules/vite-plugin-sutpc-svg-icons/index.js";
import vitePluginSutpcLibStaticImport from "file:///C:/Users/13994/Desktop/tian_ps/node_modules/.pnpm/vite-plugin-sutpc-lib-static-import@file+sutpc-pak+vite-plugin-sutpc-lib-static-import-1.0.17.tgz_rollup@3.29.4/node_modules/vite-plugin-sutpc-lib-static-import/index.js";
import vitePluginSutpcLessDeep from "file:///C:/Users/13994/Desktop/tian_ps/node_modules/.pnpm/vite-plugin-sutpc-less-deep@file+sutpc-pak+vite-plugin-sutpc-less-deep-1.0.5.tgz/node_modules/vite-plugin-sutpc-less-deep/index.js";
import vitePluginPurgeIcons from "file:///C:/Users/13994/Desktop/tian_ps/node_modules/.pnpm/vite-plugin-purge-icons@0.9.2_vite@4.5.3_@types+node@18.19.46_less@4.2.0_terser@5.31.6_/node_modules/vite-plugin-purge-icons/dist/index.mjs";
import vitePluginSutpcIconPark from "file:///C:/Users/13994/Desktop/tian_ps/node_modules/.pnpm/vite-plugin-sutpc-icon-park@file+sutpc-pak+vite-plugin-sutpc-icon-park-1.0.5.tgz_vue@3.4.38_typescript@4.9.5_/node_modules/vite-plugin-sutpc-icon-park/index.js";
import vitePluginSutpcCommon from "file:///C:/Users/13994/Desktop/tian_ps/node_modules/.pnpm/vite-plugin-sutpc-common@file+sutpc-pak+vite-plugin-sutpc-common-1.2.4.tgz/node_modules/vite-plugin-sutpc-common/index.js";

// vite-plugin-sutpc-public-path.ts
function vite_plugin_sutpc_public_path_default(path) {
  let base = "";
  return {
    configResolved(config) {
      base = config.base;
    },
    transform(code, id) {
      const isDev = process.env.VITE_USER_NODE_ENV === "development";
      const replacer = isDev ? "/" : path || base;
      return code.replace(/\[publicPath\]/g, replacer);
    },
    enforce: "pre"
  };
}

// vite.config.ts
import viteCompression from "file:///C:/Users/13994/Desktop/tian_ps/node_modules/.pnpm/vite-plugin-compression@0.5.1_vite@4.5.3_@types+node@18.19.46_less@4.2.0_terser@5.31.6_/node_modules/vite-plugin-compression/dist/index.mjs";
import { ViteEjsPlugin } from "file:///C:/Users/13994/Desktop/tian_ps/node_modules/.pnpm/vite-plugin-ejs@1.7.0_vite@4.5.3_@types+node@18.19.46_less@4.2.0_terser@5.31.6_/node_modules/vite-plugin-ejs/index.js";
import externalGlobals from "file:///C:/Users/13994/Desktop/tian_ps/node_modules/.pnpm/rollup-plugin-external-globals@0.6.1_rollup@3.29.4/node_modules/rollup-plugin-external-globals/index.js";
var root = process.cwd();
var pathResolve = (dir) => resolve(root, ".", dir);
var vite_config_default = ({ command, mode }) => {
  const isBuild = command === "build";
  const argMode = process.argv[3] === "--mode" ? process.argv[4] : process.argv[3];
  const configDir = pathResolve("config");
  const env = loadEnv(isBuild ? mode : argMode, configDir);
  const publicPath = env.VITE_APP_MODE === "LIB" ? `/bizapp/${env.VITE_APP_KEY}/front/` : "/";
  const buildOptions = env.VITE_APP_MODE === "LIB" ? {
    // 库模式定制
    outDir: env.VITE_OUT_DIR + "/" + env.VITE_APP_KEY,
    lib: {
      entry: resolve("src/lib.ts"),
      name: env.VITE_APP_KEY,
      fileName: "lib"
    }
  } : {
    // 正常模式
    outDir: env.VITE_OUT_DIR || "dist"
  };
  return {
    envDir: pathResolve("config"),
    base: env.VITE_BASE_PATH,
    plugins: [
      vue(),
      vueJsx(),
      vitePluginSutpcLibStaticImport(),
      vitePluginSutpcLessDeep(),
      vitePluginSutpcCommon({
        noOnlineIconify: true
      }),
      vitePluginPurgeIcons(),
      vitePluginSutpcIconPark(),
      vite_plugin_sutpc_public_path_default(publicPath),
      createSvgIconsPlugin(),
      WindiCSS(),
      ViteEjsPlugin({
        title: env.VITE_APP_TITLE
      }),
      viteCompression({
        threshold: 1024 * 2,
        // 对大于 2kb 的文件进行压缩
        filter: /.(js|mjs|json|css|html|geojson)$/i,
        disable: false
        //是否禁用压缩，默认为 false
      })
      // isBuild &&
      //   rollupPluginVisualizer({
      //     emitFile: true, //是否被触摸
      //     filename: 'analyze.html', //生成分析网页文件名
      //     open: true, //在默认用户代理中打开生成的文件
      //     gzipSize: true, //从源代码中收集 gzip 大小并将其显示在图表中
      //     brotliSize: true //从源代码中收集 brotli 大小并将其显示在图表中
      //   })
    ],
    define: {
      "process.env": {}
    },
    resolve: {
      extensions: [".mjs", ".js", ".ts", ".jsx", ".tsx", ".json", ".less", ".css"],
      alias: [
        // {
        //   find: 'vue-i18n',
        //   replacement: 'vue-i18n/dist/vue-i18n.cjs.js'
        // },
        {
          find: /\@\//,
          replacement: `${pathResolve("src")}/`
        }
      ]
    },
    css: {
      preprocessorOptions: {
        less: {
          javascriptEnabled: true,
          globalVars: {
            publicPath
          }
        }
      }
    },
    build: {
      ...buildOptions,
      rollupOptions: {
        // 确保外部化处理那些你不想打包进库的依赖
        external: env.VITE_APP_MODE === "LIB" ? ["vue", "vue-router", "pinia", "echarts"] : [],
        output: {
          // 在 UMD 构建模式下为这些外部化的依赖提供一个全局变量
          globals: {
            vue: "Vue",
            "vue-router": "VueRouter",
            pinia: "Pinia",
            echarts: "echarts",
            "element-plus": "ElementPlus"
          }
        },
        plugins: [
          env.VITE_APP_MODE === "LIB" ? externalGlobals({
            vue: "Vue",
            "vue-router": "VueRouter",
            pinia: "Pinia",
            echarts: "echarts",
            "element-plus": "ElementPlus",
            "vue-i18n": "VueI18n"
            // '@sutpc/axios': 'request'
          }) : null
        ]
      },
      sourcemap: env.VITE_SOURCEMAP === "true" ? "inline" : false,
      reportCompressedSize: false,
      chunkSizeWarningLimit: 2e3,
      minify: "terser",
      terserOptions: {
        compress: {
          drop_debugger: env.VITE_DROP_DEBUGGER === "true",
          drop_console: env.VITE_DROP_CONSOLE === "true"
        }
      }
    },
    server: {
      host: "0.0.0.0",
      proxy: {
        [env.VITE_TESPBASE_PATH]: {
          target: env.VITE_TESP_API_BASEPATH,
          changeOrigin: true
          // rewrite: path => path.replace(/^\/web\/tespbiz-prjlib/, '')
        },
        [env.VITE_FILE_PROXY]: {
          target: `http://10.3.4.149:9000`,
          changeOrigin: true,
          rewrite: (path) => path.replace(new RegExp("^" + env.VITE_FILE_PROXY), "")
        },
        ["/bizapp/" + env.VITE_APP_KEY + "/api/"]: {
          target: `http://10.3.4.193:9601`,
          changeOrigin: true,
          rewrite: (path) => path.replace(new RegExp("^/bizapp/" + env.VITE_APP_KEY + "/api"), "")
        },
        ["/portal/api/"]: {
          target: `http://10.3.4.193:10000`,
          changeOrigin: true,
          rewrite: (path) => path.replace(new RegExp("^/portal/api"), "")
        },
        ["/tiannetST/"]: {
          // target: `http://172.16.0.198:12085/api/ps-show`,
          target: `http://111.160.76.111:10000/api/ps-show`,
          changeOrigin: true,
          rewrite: (path) => path.replace(new RegExp("^/tiannetST/"), "")
        }
      }
    },
    optimizeDeps: {
      include: [
        "vue",
        "vue-router",
        "lodash-es",
        "element-plus/es/locale/lang/zh-cn",
        "element-plus/es/locale/lang/en",
        "@iconify/iconify",
        "@sutpc/zebra",
        "@sutpc/vue3-ec-resize",
        "axios",
        "qs",
        "echarts",
        "vue-i18n"
      ]
    }
  };
};
export {
  vite_config_default as default
};
//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsidml0ZS5jb25maWcudHMiLCAidml0ZS1wbHVnaW4tc3V0cGMtcHVibGljLXBhdGgudHMiXSwKICAic291cmNlc0NvbnRlbnQiOiBbImNvbnN0IF9fdml0ZV9pbmplY3RlZF9vcmlnaW5hbF9kaXJuYW1lID0gXCJDOlxcXFxVc2Vyc1xcXFwxMzk5NFxcXFxEZXNrdG9wXFxcXHRpYW5fcHNcIjtjb25zdCBfX3ZpdGVfaW5qZWN0ZWRfb3JpZ2luYWxfZmlsZW5hbWUgPSBcIkM6XFxcXFVzZXJzXFxcXDEzOTk0XFxcXERlc2t0b3BcXFxcdGlhbl9wc1xcXFx2aXRlLmNvbmZpZy50c1wiO2NvbnN0IF9fdml0ZV9pbmplY3RlZF9vcmlnaW5hbF9pbXBvcnRfbWV0YV91cmwgPSBcImZpbGU6Ly8vQzovVXNlcnMvMTM5OTQvRGVza3RvcC90aWFuX3BzL3ZpdGUuY29uZmlnLnRzXCI7aW1wb3J0IHsgbG9hZEVudiB9IGZyb20gJ3ZpdGUnO1xuaW1wb3J0IHsgcmVzb2x2ZSB9IGZyb20gJ3BhdGgnO1xuaW1wb3J0IFdpbmRpQ1NTIGZyb20gJ3ZpdGUtcGx1Z2luLXdpbmRpY3NzJztcbmltcG9ydCB2dWUgZnJvbSAnQHZpdGVqcy9wbHVnaW4tdnVlJztcbmltcG9ydCB2dWVKc3ggZnJvbSAnQHZpdGVqcy9wbHVnaW4tdnVlLWpzeCc7XG5pbXBvcnQgeyBjcmVhdGVTdmdJY29uc1BsdWdpbiB9IGZyb20gJ3ZpdGUtcGx1Z2luLXN1dHBjLXN2Zy1pY29ucyc7XG5pbXBvcnQgdml0ZVBs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ICAgb3V0cHV0OiB7XG4gICAgICAgICAgLy8gXHU1NzI4IFVNRCBcdTY3ODRcdTVFRkFcdTZBMjFcdTVGMEZcdTRFMEJcdTRFM0FcdThGRDlcdTRFOUJcdTU5MTZcdTkwRThcdTUzMTZcdTc2ODRcdTRGOURcdThENTZcdTYzRDBcdTRGOUJcdTRFMDBcdTRFMkFcdTUxNjhcdTVDNDBcdTUzRDhcdTkxQ0ZcbiAgICAgICAgICBnbG9iYWxzOiB7XG4gICAgICAgICAgICB2dWU6ICdWdWUnLFxuICAgICAgICAgICAgJ3Z1ZS1yb3V0ZXInOiAnVnVlUm91dGVyJyxcbiAgICAgICAgICAgIHBpbmlhOiAnUGluaWEnLFxuICAgICAgICAgICAgZWNoYXJ0czogJ2VjaGFydHMnLFxuICAgICAgICAgICAgJ2VsZW1lbnQtcGx1cyc6ICdFbGVtZW50UGx1cydcbiAgICAgICAgICB9XG4gICAgICAgIH0sXG4gICAgICAgIHBsdWdpbnM6IFtcbiAgICAgICAgICBlbnYuVklURV9BUFBfTU9ERSA9PT0gJ0xJQidcbiAgICAgICAgICAgID8gZXh0ZXJuYWxHbG9iYWxzKHtcbiAgICAgICAgICAgICAgICB2dWU6ICdWdWUnLFxuICAgICAgICAgICAgICAgICd2dWUtcm91dGVyJzogJ1Z1ZVJvdXRlcicsXG4gICAgICAgICAgICAgICAgcGluaWE6ICdQaW5pYScsXG4gICAgICAgICAgICAgICAgZWNoYXJ0czogJ2VjaGFydHMnLFxuICAgICAgICAgICAgICAgICdlbGVtZW50LXBsdXMnOiAnRWxlbWVudFBsdXMnLFxuICAgICAgICAgICAgICAgICd2dWUtaTE4bic6ICdWdWVJMThuJ1xuICAgICAgICAgICAgICAgIC8vICdAc3V0cGMvYXhpb3MnOiAncmVxdWVzdCdcbiAgICAgICAgICAgICAgfSlcbiAgICAgICAgICAgIDogbnVsbFxuICAgICAgICBdXG4gICAgICB9LFxuICAgICAgc291cmNlbWFwOiBlbnYuVklURV9TT1VSQ0VNQVAgPT09ICd0cnVlJyA/ICdpbmxpbmUnIDogZmFsc2UsXG4gICAgICByZXBvcnRDb21wcmVzc2VkU2l6ZTogZmFsc2UsXG4gICAgICBjaHVua1NpemVXYXJuaW5nTGltaXQ6IDIwMDAsXG4gICAgICBtaW5pZnk6ICd0ZXJzZXInLFxuICAgICAgdGVyc2VyT3B0aW9uczoge1xuICAgICAgICBjb21wcmVzczoge1xuICAgICAgICAgIGRyb3BfZGVidWdnZXI6IGVudi5WSVRFX0RST1BfREVCVUdHRVIgPT09ICd0cnVlJyxcbiAgICAgICAgICBkcm9wX2NvbnNvbGU6IGVudi5WSVRFX0RST1BfQ09OU09MRSA9PT0gJ3RydWUnXG4gICAgICAgIH1cbiAgICAgIH1cbiAgICB9LFxuICAgIHNlcnZlcjoge1xuICAgICAgaG9zdDogJzAuMC4wLjAnLFxuICAgICAgcHJveHk6IHtcbiAgICAgICAgW2Vudi5WSVRFX1RFU1BCQVNFX1BBVEhdOiB7XG4gICAgICAgICAgdGFyZ2V0OiBlbnYuVklURV9URVNQX0FQSV9CQVNFUEFUSCxcbiAgICAgICAgICBjaGFuZ2VPcmlnaW46IHRydWVcbiAgICAgICAgICAvLyByZXdyaXRlOiBwYXRoID0+IHBhdGgucmVwbGFjZSgvXlxcL3dlYlxcL3Rlc3BiaXotcHJqbGliLywgJycpXG4gICAgICAgIH0sXG4gICAgICAgIFtlbnYuVklURV9GSUxFX1BST1hZXToge1xuICAgICAgICAgIHRhcmdldDogYGh0dHA6Ly8xMC4zLjQuMTQ5OjkwMDBgLFxuICAgICAgICAgIGNoYW5nZU9yaWdpbjogdHJ1ZSxcbiAgICAgICAgICByZXdyaXRlOiAocGF0aCkgPT4gcGF0aC5yZXBsYWNlKG5ldyBSZWdFeHAoJ14nICsgZW52LlZJVEVfRklMRV9QUk9YWSArICcnKSwgJycpXG4gICAgICAgIH0sXG4gICAgICAgIFsnL2JpemFwcC8nICsgZW52LlZJVEVfQVBQX0tFWSArICcvYXBpLyddOiB7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